home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Disc to the Future 2
/
Disc to the Future Part II Programmer's Reference (Wayzata Technology)(6013)(1992).bin
/
MAC
/
THINKC
/
4_0
/
LIFE_SIM
/
VERSION_
/
HANDLEDI.C
< prev
next >
Wrap
Text File
|
1992-03-12
|
972b
|
51 lines
/* Cell Proj 1.0 */
#include "MacProto.h"
#include "Cell_Proto.h"
#include "Cell_Definitions.h"
#include "Cell_Variables.h"
DoPreCheck()
{
char theChar;
switch ( gTheEvent.what )
{
case autoKey:
case keyDown:
theChar = gTheEvent.message & charCodeMask;
if (( gTheEvent.modifiers & cmdKey ) != 0 )
HandleMenuChoice( MenuKey( theChar ));
break;
case activateEvt:
if ( (WindowPtr)gTheEvent.message == gCellInfoDialog )
{
if (( gTheEvent.modifiers & activeFlag ) != 0 )
{
SetPort( gCellInfoDialog );
SelectWindow( gCellInfoDialog );
}
else
{
SetPort( gCellInfoDialog );
}
}
break;
case updateEvt:
if ( (WindowPtr)gTheEvent.message == gCellInfoDialog )
{
BeginUpdate( gCellInfoDialog );
DrawDialog( gCellInfoDialog );
EndUpdate( gCellInfoDialog );
}
break;
}
}
HandleDialog()
{
int itemHit;
DialogPtr theDialog;
DialogSelect( &gTheEvent, &theDialog, &itemHit );
}